package com.pactera.asmp.server.common.threadpool.task;

import com.pactera.asmp.server.common.threadpool.BaseTask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <p>Class: com.lzq.plugin.threadpool.task.PostTraceTask</p>
 * <p>Description: </p>
 * <pre>
 *
 * </pre>
 *
 * @author lv zhiqiang
 * @date 2019/7/16/17:54
 */
public class PostTraceTask extends BaseTask {
    public static final Logger logger = LoggerFactory
            .getLogger(PostTraceTask.class);

    public PostTraceTask(String taskName) {
        super(taskName);
        this.taskName = taskName;
    }


    public PostTraceTask(String taskName, long expire) {
        super(taskName, expire);
    }

    @Override
    public boolean executeWorkTask() {
        logger.info("PostTraceTask executeWorkTask  currentThread name : " + Thread.currentThread().getName() + "  taskName:" + taskName);
        return true;
    }

    @Override
    public boolean stopWorkTask() {
        logger.info("PostTraceTask stopWorkTask  currentThread name : " + Thread.currentThread().getName() + "  taskName:" + taskName);
        return false;
    }
}
